package com.ningxun.pagent.bus.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ningxun.pagent.common.annotation.Excel;
import com.ningxun.pagent.common.core.domain.BaseEntity;

/**
 * 政策条款对象 base_protocol
 *
 * @author pagent
 * @date 2025-07-12
 */
public class BaseProtocol extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 协议唯一ID */
    private Long protocolId;

    /** 条款名称 */
    @Excel(name = "条款名称")
    private String protocolName;

    /** 协议类型(privacy:隐私协议, disclaimer:免责声明) */
    @Excel(name = "协议类型(privacy:隐私协议, disclaimer:免责声明)")
    private String protocolType;

    /** 协议内容 */
    @Excel(name = "协议内容")
    private String content;

    /** 协议版本 */
    @Excel(name = "协议版本")
    private String version;

    /** 删除标志(0=存在, 1=删除) */
    private Long delFlag;

    public void setProtocolId(Long protocolId)
    {
        this.protocolId = protocolId;
    }

    public Long getProtocolId()
    {
        return protocolId;
    }

    public void setProtocolName(String protocolName)
    {
        this.protocolName = protocolName;
    }

    public String getProtocolName()
    {
        return protocolName;
    }

    public void setProtocolType(String protocolType)
    {
        this.protocolType = protocolType;
    }

    public String getProtocolType()
    {
        return protocolType;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }

    public void setDelFlag(Long delFlag)
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("protocolId", getProtocolId())
            .append("protocolName", getProtocolName())
            .append("protocolType", getProtocolType())
            .append("content", getContent())
            .append("version", getVersion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
